@import '@/styles/variables.scss';

.prescription-container {
    margin-top: $collection-space-y;
    position: relative;

    .prescription-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        padding: 0px $collection-x;
        background: $table-top-bg;
        border: 1px solid $border-color;
        border-top-left-radius: $border-radius-4;
        border-top-right-radius: $border-radius-4;

        .title-left {
            span {
                font-size: $font-size-main;
                color: $font-size-main;
                font-weight: bold;
            }
        }
    }
    .top-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        padding: 0px $block-x;
        border-bottom: 1px dashed $border-color;
        border-top-left-radius: $border-radius-4;
        border-top-right-radius: $border-radius-4;

        .title-left {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            .title-icon{
                font-size: $font-size-title;
                color: $main-color; 
                margin-right: $block-img-text-x;
            }
            span {
                font-size: $font-size-main;
                color: $font-size-main;
            }
        }
    }
    .payed-split-line{
        border-bottom: 1px dotted $border-color;
    }
    .prescription-examine-container {
        .prescription-content {
            border: 1px solid $border-color;
            &:first-of-type{
                border-top: none;
            }
            .check-item-dynamic {
                .payed-container{
                    padding: $block-y $block-x;
                }
                .nopay-container{
                    padding: $block-y $block-x;
                }
                
                .form-item {
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    position: relative;
                    margin-bottom: 5px;
                    &:last-of-type{
                        margin-bottom: 0px;
                    }
                    .pay-icon{
                        width: 60px;
                        height: 60px;
                        z-index: 1000;
                        position: absolute;
                        left: -10px;
                        top: 0px;
                        img{
                            width: 100%;
                        }
                    }
                    
                    .el-form-item__content {
                        width: 100%;
                        margin-left: 0px!important;
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        .el-autocomplete{
                            width: 100%;
                            .el-input__inner{
                                border-radius: 0px;
                            }
                        }
                        .inline-input{
                            width: 72%;
                        }
                        .num-input{
                            width: 10%;
                        }
                        .price{
                            width: 8%;
                            min-width: 50px;
                        }
                        .btn{
                            width: 10%;
                            text-align: right;
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                        }
                    }
                    

                }

            }
        }
        
    }
    .el-input__suffix{
        color: $btn-red;
    }
    .prescription-prescription-container {
        margin-top: $collection-space-y;

        .prescription-content {
            border: 1px solid $border-color;
            margin-bottom: $block-space-y;
            &:first-of-type{
                border-top: none;
            }
            .prescription-payed-container{
                position: relative;
                .pay-icon{
                    width: 60px;
                    height: 60px;
                    z-index: 1000;
                    position: absolute;
                    left: 0px;
                    top: 0px;
                    img{
                        width: 100%;
                    }
                }
            }
            .shuye-group-item{
                border-bottom: 1px dashed $border-color;
                &:last-of-type{
                    border-bottom: none;
                }
                .shuye-group-top{
                    padding: $block-y $block-x;
                    .group-top-left{
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        .group-num{
                            font-size: $font-size-main;
                            color: $font-color-main;
                            margin-right: $block-space-x;
                        }
                    }
                }
            }
            .prescription-info-container{
                padding: $block-y $block-x;
                .info-table{
                    max-width: 100%;
                    min-width: 500px;
                    td{
                        border: 1px solid $border-color;
                    }
                    .table-td{
                        padding: 0 $block-x;
                        white-space: nowrap;
                        .el-input{
                            width: 100%;
                            .el-input__inner{
                                border: none;
                                height: 38px;
                                background: transparent;
                            }
                        }
                        .el-input__suffix{
                            color: $btn-red;
                        }
                        .el-autocomplete{
                            width: 100%;
                        }
                        .jishu{
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            .unit{
                                height: 40px;
                                line-height: 40px;
                                padding: 0px $block-x;
                                background-color: $table-top-bg;
                            }
                        }
                    }
                    .mrjl{
                        padding-right: 0px; 
                    }
                }
            }
            .injection-dynamic {
                padding: $block-y $block-x;
                
                .el-form-item {
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    margin-bottom: 5px;
                    &:last-of-type{
                        margin-bottom: 0px;
                    }
                    .form-item-left{
                        width: 97%;
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        .price{
                            width: 10%;
                        }
                    }
                    .btn{
                        width: 3%;
                    }
                    .el-form-item__content {
                        width: 100%;
                        margin-left: 0px!important;
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        .el-autocomplete{
                            width: 10%;
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            .el-input__inner{
                                width: 100%;
                                border-radius: 0px;
                            }
                        }
                        .product-name-input{
                            width: 35%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                        }
                        .use-info-input{
                            width: 10%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                        }
                        .frequency-input{
                            width: 10%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                        }
                        .single-container{
                            width: 20%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            .single-num-input{
                                width: 50%;
                                .el-input__inner{
                                    border-radius: 0px;
                                }
                            }
                            .single-unit-input{
                                width: 50%;
                                .el-input__inner{
                                    border-radius: 0px;
                                }
                            }
                        }
                        .total-num-input{
                            width: 20%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            .num-input{
                                width: 50%;
                            }
                            .number-unit-input{
                                width: 50%;
                            }
                        }
                        .num-input{
                            width: 10%;
                            .el-input__inner{
                                width: 100%;
                                border-radius: 0px;
                            }
                            .el-input-group__append{
                                padding: 0px 20px;
                                border-radius: 0px;
                            }
                        }
                        .append-input{
                            width: 20%;
                        }
                        .remark-input{
                            width: 35%;
                        }
                    }
                    
                    .el-input__suffix{
                        color: $btn-red;
                    }

                }
                .form-item-detail{
                    
                    .el-form-item__content{
                        display: flex;
                        justify-content: flex-start;
                        align-items: flex-start;
                        flex-direction: column;
                        .item-detail-main{
                            width: 100%;
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                        }
                        .item-details-info{
                            line-height: 22px;
                            .info-tip{
                                font-size: $font-size-main;
                                color: $tip-red;
                                line-height: 22px;
                            }
                        }
                    }
                    
                }
            }
            .shuye-injection-dynamic{
                .el-form-item {
                    .el-form-item__content {
                        .el-autocomplete{
                            width: 12%;
                        }
                        .product-name-input{
                            width: 35%;
                        }
                    }

                }
            }
        }
    }
    .surcharge-container{
        .surchange-item-left{
            width: 88%;
            margin-right: 10px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            .el-autocomplete{
                width: 100%!important;
            }
            .price{
                display: flex;
                justify-content: flex-start;
                align-items: center;
                width: 80px;
                margin-left: 20px;
            }
        }
        .btn{
            width: 12%;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }
    }
    .medicalAdvice-content-container{
        margin-top: $block-space-y;
        .medicalAdvice-content {          
            height: 40px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            .left-container{
                width: 93%;
                border: 1px solid $border-color;
                border-radius: $border-radius-4;
                height: 100%;
                display: flex;
                justify-content: flex-start;
                align-items: center;
                .left-title{
                    width: 90px;
                    height: 100%;
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    flex-shrink: 0;
                    padding: 0px $collection-x;
                    border-right: 1px solid $border-color;
                    .title{
                        font-size: $font-size-main;
                        color: $font-color-main;
                    }
                }
                .input-container{
                    width: 90%;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    .inline-input{
                        width: 100%;
                    }
                    .el-input{
                        height: 40px;
                        line-height: 40px;
                        .el-input-group__prepend{
                            height: 40px;
                            line-height: 40px;
                        }
                        .el-input__inner{
                            width: 100%;
                            height: 40px;
                            line-height: 40px;
                            border: none;
                        }
                    }
                }
                
            }
            .right-container{
                width: 7%;
                height: 40px;
                display: flex;
                justify-content: flex-end;
                align-items: center;
            }
        }
    }
    .prescription-total-price-container{
        position: sticky;
        bottom: -10px;
        z-index: 1999;
        .prescription-total-price{
            height: 40px;
            padding: 0px $collection-x;
            margin-top: $block-space-y;
            border: 1px solid $border-color;
            border-radius: $border-radius-4;
            background: $table-top-bg;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .right-container{
                width: 100%;
                display: flex;
                justify-content: flex-end;
                align-items: center;
                .price-title{
                    font-size: $font-size-main;
                    color: $font-color-main;
                }
                .price-num{
                    font-size: 16px;
                    color: $font-color-price;
                }
            }
        }
    }
    
}